package com.a.a.a.a.a.f;

import com.taobao.txc.parser.b.a.h;

public class d
  extends i
{
  protected d a;
  protected final String b;
  protected final String c;
  protected final String d;
  
  public static String b(String paramString)
  {
    return a(paramString, false);
  }
  
  public static String a(String paramString, boolean paramBoolean)
  {
    if ((paramString == null) || (paramString.length() <= 0)) {
      return paramString;
    }
    if (paramString.charAt(0) != '`') {
      return paramBoolean ? paramString.toUpperCase() : paramString;
    }
    if (paramString.charAt(paramString.length() - 1) != '`') {
      throw new IllegalArgumentException("id start with a '`' must end with a '`', id: " + paramString);
    }
    StringBuilder localStringBuilder = new StringBuilder(paramString.length() - 2);
    int i = paramString.length() - 1;
    int j = 0;
    for (int k = 1; k < i; k++)
    {
      char c1 = paramString.charAt(k);
      if ((c1 == '`') && (j == 0))
      {
        j = 1;
      }
      else
      {
        j = 0;
        if ((paramBoolean) && (c1 >= 'a') && (c1 <= 'z')) {
          c1 = (char)(c1 - ' ');
        }
        localStringBuilder.append(c1);
      }
    }
    return localStringBuilder.toString();
  }
  
  public d(d paramd, String paramString)
  {
    this(paramd, paramString, paramString.toUpperCase());
  }
  
  public d(d paramd, String paramString1, String paramString2)
  {
    this.a = paramd;
    this.b = paramString1;
    this.d = b(paramString2);
    this.c = a(paramString1, false);
  }
  
  public boolean b()
  {
    return (this.d.equals("NEXTVAL")) && (this.a != null);
  }
  
  public void a(d paramd)
  {
    this.a = paramd;
  }
  
  public d c()
  {
    return this.a;
  }
  
  public String e()
  {
    return this.b;
  }
  
  public String f()
  {
    return this.d;
  }
  
  public String g()
  {
    return this.c;
  }
  
  public String toString()
  {
    StringBuilder localStringBuilder = new StringBuilder("ID:");
    if (this.a != null) {
      localStringBuilder.append(this.a).append('.');
    }
    return this.b;
  }
  
  public int hashCode()
  {
    int i = 37;
    int j = 17;
    if (this.a == null) {
      j += 37;
    } else {
      j = j * 37 + this.a.hashCode();
    }
    if (this.b == null) {
      j += 37;
    } else {
      j = j * 37 + this.b.hashCode();
    }
    return j;
  }
  
  public boolean equals(Object paramObject)
  {
    if (paramObject == this) {
      return true;
    }
    if ((paramObject instanceof d))
    {
      d locald = (d)paramObject;
      return (a(this.a, locald.a)) && (a(this.b, locald.b));
    }
    return false;
  }
  
  private static boolean a(Object paramObject1, Object paramObject2)
  {
    if (paramObject1 == paramObject2) {
      return true;
    }
    if (paramObject1 == null) {
      return paramObject2 == null;
    }
    return paramObject1.equals(paramObject2);
  }
  
  public void a(h paramh)
  {
    paramh.a(this);
  }
}


/* Location:           C:\Users\ibm\Downloads\txc-yun-sample (1)\txc-yun-sample\lib\txc-client-2.0.72.jar
 * Qualified Name:     com.a.a.a.a.a.f.d
 * JD-Core Version:    0.7.0.1
 */